WID_HOTKEYWND = 156
WID_JOINTO_BATTLEFIELDWND = 157
WID_RELOADLUASCRIPTWND = 158
WID_QUIKSLOTWND = 159
WID_BATTLEFIELD_DESCRIBEWND = 165
WID_BATTLEFIELD_STATUSWND = 166
WID_BATTLEFIELD_HELPWND = 167
WID_SEARCH_STORE_INFO = 181
WID_BUTTONS_OF_BASICWND = 182
WID_SHOWINFO_TESTLAYER = 183
WID_EXMACRO_SETUPWND = 191
WID_DEBUGINGINTERFACEWND = 193
WID_DEBUGINGINTERFACEWND_USERDEFINE = 194

UIHotKeyWnd = {
	width = 436,
	height = 432,
	x = 300,
	y = 100,
	bgColor = {
		255,
		255,
		255
	},
	baseButton = 1,
	closeButton = 1
}

UIJoinToBattleFieldWnd = {
	width = 280,
	height = 186,
	x = 300,
	y = 120,
	baseButton = 1,
	closeButton = 1
}

UIReloadLuaScript = {
	width = 36,
	height = 34,
	x = 400,
	y = 400,
	baseButton = 1,
	closeButton = 1
}

UIBattleFieldDescribeWnd = {
	width = 280,
	height = 360,
	x = 350,
	y = 150,
	baseButton = 1,
	closeButton = 1
}

UIBattleFieldStatusWnd = {
	width = 280,
	height = 186,
	x = 350,
	y = 150,
	baseButton = 1,
	closeButton = 1
}

UIBattleFieldHelpWnd = {
	width = 280,
	height = 360,
	x = 350,
	y = 150,
	baseButton = 1,
	closeButton = 1
}

UIQuikSlotWnd = {
	width = 77,
	height = 34,
	x = 900,
	y = 0
}

UISerachStoreInfoWnd = {
	width = 445,
	height = 380,
	x = 300,
	y = 100
}

UIButtonsOfBasicWnd = {
	width = 220,
	height = 80,
	x = 300,
	y = 100
}

UIShowInfoOfTestLayer = {
	width = 205,
	height = 70,
	x = 200,
	y = 200
}

UIExMacroSetUpWnd = {
	width = 400,
	height = 530,
	x = 300,
	y = 100
}

CUIDebugingInterfaceWnd = {
	width = 250,
	height = 260,
	x = 570,
	y = 95
}

CUIDebugingInterfaceWnd_UserDefine = {
	width = 250,
	height = 260,
	x = 570,
	y = 260
}

--Function #0
GetWindowString = function(windowID)
	if windowID == WID_HOTKEYWND then
		return "UIHotKeyWnd"
	elseif windowID == WID_JOINTO_BATTLEFIELDWND then
		return "UIJoinToBattleFieldWnd"
	elseif windowID == WID_RELOADLUASCRIPTWND then
		return "UIReloadLuaScript"
	elseif windowID == WID_QUIKSLOTWND then
		return "UIQuikSlotWnd"
	elseif windowID == WID_BATTLEFIELD_DESCRIBEWND then
		return "UIBattleFieldDescribeWnd"
	elseif windowID == WID_BATTLEFIELD_STATUSWND then
		return "UIBattleFieldStatusWnd"
	elseif windowID == WID_BATTLEFIELD_HELPWND then
		return "UIBattleFieldHelpWnd"
	elseif windowID == WID_SEARCH_STORE_INFO then
		return "UISerachStoreInfoWnd"
	elseif windowID == WID_BUTTONS_OF_BASICWND then
		return "UIButtonsOfBasicWnd"
	elseif windowID == WID_SHOWINFO_TESTLAYER then
		return "UIShowInfoOfTestLayer"
	elseif windowID == WID_EXMACRO_SETUPWND then
		return "UIExMacroSetUpWnd"
	elseif windowID == WID_DEBUGINGINTERFACEWND then
		return "CUIDebugingInterfaceWnd"
	elseif windowID == WID_DEBUGINGINTERFACEWND_USERDEFINE then
		return "CUIDebugingInterfaceWnd_UserDefine"
	end
	return nil
end

--Function #1
GetWindowInfo = function(windowID)
   local wnd = nil
   local wndStr = GetWindowString(windowID)
   if wndStr ~= nil then
      wnd = _G[wndStr]
   end
   if wnd ~= nil then
      return wnd.width, wnd.height, wnd.x, wnd.y
   end
end

--Function #2
GetSysButtonInfo = function(windowID)
   local wnd = nil
   local wndStr = GetWindowString(windowID)
   if wndStr ~= nil then
      wnd = _G[wndStr]
   end
   if wnd ~= nil then
      return wnd.baseButton, wnd.closeButton
   end
end